home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / nls / chinese5.1 / chinese5-5.1.patch
Encoding:
Text File  |  1993-11-18  |  13.6 KB  |  522 lines

  1. diff -crN chinese5/ChangeLog chinese5-1/ChangeLog
  2. *** chinese5/ChangeLog    Wed Dec 31 19:00:00 1969
  3. --- chinese5-1/ChangeLog    Wed Nov 17 19:59:37 1993
  4. ***************
  5. *** 0 ****
  6. --- 1,162 ----
  7. + Fri Oct  8 14:04:29 1993  root
  8. +     * ChangeLog: Initial revision
  9. +     * cnprint220.c:
  10. +     Let English and Chinese message can display according to the 
  11. +     exitence of Chinese daemon.
  12. +     * cnprint220.c: Initial revision
  13. +     * chinese.c: *** empty log message ***
  14. +     * ttyserver.c:
  15. +     The running process number is lower to one,not three.But the performance
  16. +     is lower,too.
  17. + Wed Oct  6 23:49:33 1993  root
  18. +     * ttyserver.c: *** empty log message ***
  19. + Mon Oct  4 01:09:30 1993  root
  20. +     * README: *** empty log message ***
  21. + Sun Oct  3 23:38:57 1993  root
  22. +     * 1: Initial revision
  23. + Thu Sep 30 00:21:40 1993  root
  24. +     * HBF_api.c: Initial revision
  25. + Wed Sep 29 22:43:40 1993  root
  26. +     * loadfont.c: Initial revision
  27. +     * chinese.c: *** empty log message ***
  28. + Sun Sep 26 20:10:29 1993  root
  29. +     * ttyserver.c: *** empty log message ***
  30. +     * main.c: Add code to change window size
  31. +     * chinese.c, version.c: *** empty log message ***
  32. +     * chinese.c: Add code for change the window size
  33. +     * ttyserver.c: Add code to change chinese window size
  34. + Fri Sep 24 10:41:58 1993  root
  35. +     * README: *** empty log message ***
  36. + Thu Sep 23 14:57:50 1993  root
  37. +     * main.c: *** empty log message ***
  38. + Wed Sep 22 20:05:37 1993  root
  39. +     * mkmulti.c: *** empty log message ***
  40. +     * chinese.c: Fix Load font function
  41. +     * Makefile, version.c: *** empty log message ***
  42. +     * version.c: A clean version build
  43. +     * chinese.c: KC font is became default font now.
  44. +     * README: *** empty log message ***
  45. + Tue Sep 21 23:45:45 1993  root
  46. +     * Makefile: The HAN font is not default now
  47. +     * chinese.c: The font definition file add a parameter to skip the head
  48. +     of font file
  49. + Fri Sep 17 16:49:12 1993  root
  50. +     * output.c: Home screnn function is fixed
  51. +     * chinese.c:
  52. +     Now console simulater can work with emacs.The Home function is fixed
  53. +     * output.c: Fix scroll
  54. +     * chinese.c, chinese.h: *** empty log message ***
  55. +     * chinese.h: Add top and bottom of screen
  56. +     * ttyserver.c: Add version display
  57. +     * version.c: Initial revision
  58. +     * ttyserver.c: Fix a misspell word
  59. +     * output.c: Fix set scroll error
  60. + Thu Sep 16 11:16:22 1993  root
  61. +     * scale.c: Initial revision
  62. + Wed Sep 15 18:35:48 1993  root
  63. +     * input.c: The Phone input method is correctly now.
  64. + Tue Sep 14 09:57:50 1993  root
  65. +     * chinese.c:
  66. +     Let the number of preloaded fonts is adjust by enviroment variable
  67. +     "LOADFONT"
  68. +     * chinese.c: *** empty log message ***
  69. +     * chinese.c: Add dynamic font loaded
  70. +     * chinese.c: The output of tran_code is limit to 14000
  71. +     * chinese.h: *** empty log message ***
  72. + Sun Sep 12 21:22:08 1993  root
  73. +     * chinese.c, input.c: display chinese mark
  74. +     * chinese.c: Add DEBUG Option
  75. +     * chinese.h: Initial revision
  76. +     * ptyopen.c, chinese.c: *** empty log message ***
  77. +     * input.c: Build 0.2
  78. +     * ptyopen.c: Initial revision
  79. +     * error.c: Change sleep time from 5 seconds to 6 seconds
  80. +     * error.c, Makefile, PROBLEM, README, TODO, ccc.c, chinese.c, drawtext.S, input.c, main.c, mkmulti.c, output.c, scroll.S, ttyserver.c, vga.c:
  81. +     *** empty log message ***
  82. diff -crN chinese5/Makefile chinese5-1/Makefile
  83. *** chinese5/Makefile    Mon Nov 15 09:59:08 1993
  84. --- chinese5-1/Makefile    Wed Nov 17 20:00:10 1993
  85. ***************
  86. *** 76,82 ****
  87.       mknod /dev/cin p
  88.       chmod 666 /dev/cin
  89.       chmod +x setfont24
  90. !     setfont24
  91.       echo "If the font you set right now doesn't correct,you can"
  92.       echo "reinstall by type setfont24 in command line"
  93.   
  94. --- 76,82 ----
  95.       mknod /dev/cin p
  96.       chmod 666 /dev/cin
  97.       chmod +x setfont24
  98. !     ./setfont24
  99.       echo "If the font you set right now doesn't correct,you can"
  100.       echo "reinstall by type setfont24 in command line"
  101.   
  102. ***************
  103. *** 99,105 ****
  104.       rm -f /etc/sethbffont
  105.   
  106.   pack :
  107. !     tar cvf chdrv05.tar chinese.c vga.c chinese.h vga.h drawtext.S \
  108.               termcap Makefile \
  109.           hanfont README input.c output.c dayi.def main.c ttyserver.c \
  110.           ptyopen.c mkmulti.c vgadef.h chmsg.h error.c ccc.c scroll.S \
  111. --- 99,105 ----
  112.       rm -f /etc/sethbffont
  113.   
  114.   pack :
  115. !     tar cvf chdrv05-1.tar chinese.c vga.c chinese.h vga.h drawtext.S \
  116.               termcap Makefile \
  117.           hanfont README input.c output.c dayi.def main.c ttyserver.c \
  118.           ptyopen.c mkmulti.c vgadef.h chmsg.h error.c ccc.c scroll.S \
  119. ***************
  120. *** 108,115 ****
  121.           README.0.3pl2 hbffont sethbffont loadfont.c HBF-SUPPORT \
  122.           MANUAL.DOC HBF_api.c HBF_api.h cnprint220.c cnprint.cmd \
  123.           NEWS chdrv.FAQ portable.c portable.h PORTABLE.DOC tit2def.perl \
  124. !         tit2phone.perl    
  125. !     gzip chdrv05.tar
  126.   
  127.   dayi.tbl : dayi.def mkmulti
  128.       mkmulti dayi.def dayi.tbl
  129. --- 108,115 ----
  130.           README.0.3pl2 hbffont sethbffont loadfont.c HBF-SUPPORT \
  131.           MANUAL.DOC HBF_api.c HBF_api.h cnprint220.c cnprint.cmd \
  132.           NEWS chdrv.FAQ portable.c portable.h PORTABLE.DOC tit2def.perl \
  133. !         tit2phone.perl chexist.c kck24.hbf kcm24.hbf kcm24j.hbf ChangeLog    
  134. !     gzip chdrv05-1.tar
  135.   
  136.   dayi.tbl : dayi.def mkmulti
  137.       mkmulti dayi.def dayi.tbl
  138. diff -crN chinese5/chexist.c chinese5-1/chexist.c
  139. *** chinese5/chexist.c    Wed Dec 31 19:00:00 1969
  140. --- chinese5-1/chexist.c    Wed Nov 17 19:55:43 1993
  141. ***************
  142. *** 0 ****
  143. --- 1,38 ----
  144. + #include <sys/ioctl.h>
  145. + #include <fcntl.h>
  146. + #include <signal.h>
  147. + #include <unistd.h>
  148. + #include <sys/vt.h>
  149. + #include <sys/kd.h>
  150. + #include "chinese.h"
  151. + extern int chinese_mod;
  152. + check_if_chinese_exist()
  153. + {
  154. +   int fd;
  155. +   int mode;
  156. +   char exist;
  157. +   CMSG msg;
  158. +   char tty[10];
  159. +   char *ttyn = ttyname(0);
  160. +   
  161. +   strcpy(tty,ttyn);
  162. +   fd = open("/dev/cin",O_WRONLY|O_NDELAY);
  163. +   if (fd < 0)
  164. +     chinese_mod = 0;
  165. +   else
  166. +     {
  167. +       close(fd);
  168. +       tty[8] = tty[9];
  169. +       tty[9] = 0;
  170. +       fd = open(tty,O_RDWR);
  171. +       if (ioctl(fd,KDGETMODE,&mode) < 0)
  172. +     chinese_mod = 0;
  173. +       else if (mode == KD_GRAPHICS)
  174. +     chinese_mod = 1;
  175. +       else
  176. +     chinese_mod = 0;
  177. +       close(fd);
  178. +     }
  179. + }
  180. Binary files chinese5/dayi.tbl and chinese5-1/dayi.tbl differ
  181. diff -crN chinese5/kck24.hbf chinese5-1/kck24.hbf
  182. *** chinese5/kck24.hbf    Wed Dec 31 19:00:00 1969
  183. --- chinese5-1/kck24.hbf    Wed Nov 17 19:59:37 1993
  184. ***************
  185. *** 0 ****
  186. --- 1,59 ----
  187. + HBF_START_FONT 1.0
  188. + HBF_CODE_SCHEME Big5 KuoChiau v5.00
  189. + FONT kck24
  190. + COMMENT
  191. + COMMENT An equivalent full X11R5 XLFD conforming font name is
  192. + COMMENT    -KC-Kai-medium-r-normal-fantizi-24-240-75-75-c-240-Big5-1
  193. + COMMENT which is formed from the first 15 properties listed in
  194. + COMMENT the STARTPROPERTIES section below.
  195. + COMMENT Any of these properties is optional, as in the simple HBF file.
  196. + COMMENT
  197. + SIZE 24 75 75
  198. + HBF_BITMAP_BOUNDING_BOX 24 24 0 -2
  199. + FONTBOUNDINGBOX 24 24 0 -2
  200. + COMMENT
  201. + COMMENT  Begin Logical Font Description -- 20 special properties for this FONT
  202. + COMMENT
  203. + STARTPROPERTIES 20
  204. + FONTNAME_REGISTRY ""
  205. + FOUNDRY "Kuo Chiau"
  206. + FAMILY_NAME "Kai"
  207. + WEIGHT_NAME "medium"
  208. + SLANT "r"
  209. + SETWIDTH_NAME "normal"
  210. + ADD_STYLE_NAME "fantizi"
  211. + PIXEL_SIZE 24
  212. + POINT_SIZE 240
  213. + RESOLUTION_X 75
  214. + RESOLUTION_Y 75
  215. + SPACING "c"
  216. + AVERAGE_WIDTH 240
  217. + CHARSET_REGISTRY "Big5"
  218. + CHARSET_ENCODING "1"
  219. + FONT_ASCENT 22
  220. + FONT_DESCENT 2
  221. + DEFAULT_CHAR 0xA140
  222. + COMMENT 0xA140 is the Space character.
  223. + COPYRIGHT "This HBF header file is in the public domain."
  224. + NOTICE "The hanzi bitmap file is kcchin24.f02"
  225. + COMMENT Users should observe the copyrights of the hanzi bitmap files.
  226. + ENDPROPERTIES
  227. + CHARS 13524
  228. + HBF_START_BYTE_2_RANGES 2
  229. + HBF_BYTE_2_RANGE 0x40-0x7E
  230. + HBF_BYTE_2_RANGE 0xA1-0xFE
  231. + HBF_END_BYTE_2_RANGES
  232. + COMMENT
  233. + HBF_START_CODE_RANGES 4
  234. + HBF_CODE_RANGE 0xA140-0xA3BF kcchin24.f02 256
  235. + HBF_CODE_RANGE 0xA3C0-0xA3FE kcchin24.f02 29632
  236. + HBF_CODE_RANGE 0xA440-0xC67E kcchin24.f02 55336
  237. + HBF_CODE_RANGE 0xC940-0xF9D5 kcchin24.f02 444208
  238. + HBF_END_CODE_RANGES
  239. + COMMENT Standard symbols 0xA140-0xA3BF (408 chars)
  240. + COMMENT Non-standard symbols 0xA3C0-0xA3FE (63 characters)
  241. + COMMENT Additional 294 (GB?) symbols in offset 34168-55335
  242. + COMMENT Frequently-used hanzi 0xA440-0xC67E (5401 chars)
  243. + COMMENT Less-frequently-used hanzi 0xC940-0xF9D5 (7652 chars)
  244. + COMMENT Additional 142 symbols in offset 995152-1005375
  245. + HBF_END_FONT
  246. diff -crN chinese5/kcm24.hbf chinese5-1/kcm24.hbf
  247. *** chinese5/kcm24.hbf    Wed Dec 31 19:00:00 1969
  248. --- chinese5-1/kcm24.hbf    Wed Nov 17 19:59:37 1993
  249. ***************
  250. *** 0 ****
  251. --- 1,59 ----
  252. + HBF_START_FONT 1.0
  253. + HBF_CODE_SCHEME Big5 KuoChiau v5.00
  254. + FONT kcm24
  255. + COMMENT
  256. + COMMENT An equivalent full X11R5 XLFD conforming font name is
  257. + COMMENT    -KC-Ming-medium-r-normal-fantizi-24-240-75-75-c-240-Big5-1
  258. + COMMENT which is formed from the first 15 properties listed in
  259. + COMMENT the STARTPROPERTIES section below.
  260. + COMMENT Any of these properties is optional, as in the simple HBF file.
  261. + COMMENT
  262. + SIZE 24 75 75
  263. + HBF_BITMAP_BOUNDING_BOX 24 24 0 -2
  264. + FONTBOUNDINGBOX 24 24 0 -2
  265. + COMMENT
  266. + COMMENT  Begin Logical Font Description -- 20 special properties for this FONT
  267. + COMMENT
  268. + STARTPROPERTIES 20
  269. + FONTNAME_REGISTRY ""
  270. + FOUNDRY "Kuo Chiau"
  271. + FAMILY_NAME "Ming"
  272. + WEIGHT_NAME "medium"
  273. + SLANT "r"
  274. + SETWIDTH_NAME "normal"
  275. + ADD_STYLE_NAME "fantizi"
  276. + PIXEL_SIZE 24
  277. + POINT_SIZE 240
  278. + RESOLUTION_X 75
  279. + RESOLUTION_Y 75
  280. + SPACING "c"
  281. + AVERAGE_WIDTH 240
  282. + CHARSET_REGISTRY "Big5"
  283. + CHARSET_ENCODING "1"
  284. + FONT_ASCENT 22
  285. + FONT_DESCENT 2
  286. + DEFAULT_CHAR 0xA140
  287. + COMMENT 0xA140 is the Space character.
  288. + COPYRIGHT "This HBF header file is in the public domain."
  289. + NOTICE "The hanzi bitmap file is kcchin24.f00"
  290. + COMMENT Users should observe the copyrights of the hanzi bitmap files.
  291. + ENDPROPERTIES
  292. + CHARS 13524
  293. + HBF_START_BYTE_2_RANGES 2
  294. + HBF_BYTE_2_RANGE 0x40-0x7E
  295. + HBF_BYTE_2_RANGE 0xA1-0xFE
  296. + HBF_END_BYTE_2_RANGES
  297. + COMMENT
  298. + HBF_START_CODE_RANGES 4
  299. + HBF_CODE_RANGE 0xA140-0xA3BF kcchin24.f00 256
  300. + HBF_CODE_RANGE 0xA3C0-0xA3FE kcchin24.f00 29632
  301. + HBF_CODE_RANGE 0xA440-0xC67E kcchin24.f00 55336
  302. + HBF_CODE_RANGE 0xC940-0xF9D5 kcchin24.f00 444208
  303. + HBF_END_CODE_RANGES
  304. + COMMENT Standard symbols 0xA140-0xA3BF (408 chars)
  305. + COMMENT Non-standard symbols 0xA3C0-0xA3FE (63 characters)
  306. + COMMENT Additional 294 (GB?) symbols in offset 34168-55335
  307. + COMMENT Frequently-used hanzi 0xA440-0xC67E (5401 chars)
  308. + COMMENT Less-frequently-used hanzi 0xC940-0xF9D5 (7652 chars)
  309. + COMMENT Additional 142 symbols in offset 995152-1005375
  310. + HBF_END_FONT
  311. diff -crN chinese5/kcm24j.hbf chinese5-1/kcm24j.hbf
  312. *** chinese5/kcm24j.hbf    Wed Dec 31 19:00:00 1969
  313. --- chinese5-1/kcm24j.hbf    Wed Nov 17 19:59:37 1993
  314. ***************
  315. *** 0 ****
  316. --- 1,59 ----
  317. + HBF_START_FONT 1.0
  318. + HBF_CODE_SCHEME Big5 KuoChiau v5.00
  319. + FONT kcm24j
  320. + COMMENT
  321. + COMMENT An equivalent full X11R5 XLFD conforming font name is
  322. + COMMENT    -KC-Ming-medium-r-normal-jiantizi-24-240-75-75-c-240-Big5-1
  323. + COMMENT which is formed from the first 15 properties listed in
  324. + COMMENT the STARTPROPERTIES section below.
  325. + COMMENT Any of these properties is optional, as in the simple HBF file.
  326. + COMMENT
  327. + SIZE 24 75 75
  328. + HBF_BITMAP_BOUNDING_BOX 24 24 0 -2
  329. + FONTBOUNDINGBOX 24 24 0 -2
  330. + COMMENT
  331. + COMMENT  Begin Logical Font Description -- 20 special properties for this FONT
  332. + COMMENT
  333. + STARTPROPERTIES 20
  334. + FONTNAME_REGISTRY ""
  335. + FOUNDRY "Kuo Chiau"
  336. + FAMILY_NAME "Ming"
  337. + WEIGHT_NAME "medium"
  338. + SLANT "r"
  339. + SETWIDTH_NAME "normal"
  340. + ADD_STYLE_NAME "jiantizi"
  341. + PIXEL_SIZE 24
  342. + POINT_SIZE 240
  343. + RESOLUTION_X 75
  344. + RESOLUTION_Y 75
  345. + SPACING "c"
  346. + AVERAGE_WIDTH 240
  347. + CHARSET_REGISTRY "Big5"
  348. + CHARSET_ENCODING "1"
  349. + FONT_ASCENT 22
  350. + FONT_DESCENT 2
  351. + DEFAULT_CHAR 0xA140
  352. + COMMENT 0xA140 is the Space character.
  353. + COPYRIGHT "This HBF header file is in the public domain."
  354. + NOTICE "The hanzi bitmap file is kcchin24.f15"
  355. + COMMENT Users should observe the copyrights of the hanzi bitmap files.
  356. + ENDPROPERTIES
  357. + CHARS 13524
  358. + HBF_START_BYTE_2_RANGES 2
  359. + HBF_BYTE_2_RANGE 0x40-0x7E
  360. + HBF_BYTE_2_RANGE 0xA1-0xFE
  361. + HBF_END_BYTE_2_RANGES
  362. + COMMENT
  363. + HBF_START_CODE_RANGES 4
  364. + HBF_CODE_RANGE 0xA140-0xA3BF kcchin24.f15 256
  365. + HBF_CODE_RANGE 0xA3C0-0xA3FE kcchin24.f15 29632
  366. + HBF_CODE_RANGE 0xA440-0xC67E kcchin24.f15 55336
  367. + HBF_CODE_RANGE 0xC940-0xF9D5 kcchin24.f15 444208
  368. + HBF_END_CODE_RANGES
  369. + COMMENT Standard symbols 0xA140-0xA3BF (408 chars)
  370. + COMMENT Non-standard symbols 0xA3C0-0xA3FE (63 characters)
  371. + COMMENT Additional 294 (GB?) symbols in offset 34168-55335
  372. + COMMENT Frequently-used hanzi 0xA440-0xC67E (5401 chars)
  373. + COMMENT Less-frequently-used hanzi 0xC940-0xF9D5 (7652 chars)
  374. + COMMENT Additional 142 symbols in offset 995152-1005375
  375. + HBF_END_FONT
  376. diff -crN chinese5/vga.c chinese5-1/vga.c
  377. *** chinese5/vga.c    Fri Oct  8 17:34:53 1993
  378. --- chinese5-1/vga.c    Wed Nov 17 19:48:35 1993
  379. ***************
  380. *** 567,573 ****
  381.       return 0;  
  382.   }
  383.   
  384. ! int vga_clearblock(int lx,int ty,int rx,int by)
  385.   {
  386.     int c,i;
  387.   
  388. --- 567,573 ----
  389.       return 0;  
  390.   }
  391.   
  392. ! void vga_clearblock(int lx,int ty,int rx,int by)
  393.   {
  394.     int c,i;
  395.   
  396. ***************
  397. *** 1095,1101 ****
  398.   }
  399.   
  400.   
  401. ! int vga_cursor(int x,int y)
  402.   {
  403.     int i,off,j,c,dummy,mask;
  404.     char old,oldp;
  405. --- 1095,1101 ----
  406.   }
  407.   
  408.   
  409. ! void vga_cursor(int x,int y)
  410.   {
  411.     int i,off,j,c,dummy,mask;
  412.     char old,oldp;
  413. diff -crN chinese5/vga.h chinese5-1/vga.h
  414. *** chinese5/vga.h    Sat Nov 13 08:29:46 1993
  415. --- chinese5-1/vga.h    Wed Nov 17 19:48:38 1993
  416. ***************
  417. *** 58,64 ****
  418.   void vga_moveleft(int,int,int,int);
  419.   void vga_moveright(int,int,int,int);
  420.   void vga_cursor(int,int);
  421. ! void vga_curcolor();
  422.   void vga_underline(int);
  423.   
  424.   #endif /* VGA_H */
  425. --- 58,64 ----
  426.   void vga_moveleft(int,int,int,int);
  427.   void vga_moveright(int,int,int,int);
  428.   void vga_cursor(int,int);
  429. ! int vga_curcolor();
  430.   void vga_underline(int);
  431.   
  432.   #endif /* VGA_H */
  433.